/*****************************************************************************
 *
 *                      HUSONG PROPRIETARY INFORMATION
 *
 *          The information contained herein is proprietary to HUSONG
 *           and shall not be reproduced or disclosed in whole or in part
 *                    or used for any design or manufacture
 *              without direct written authorization from HUSONG.
 *
 *            Copyright (c) 2015 by HUSONG.  All rights reserved.
 *
 *****************************************************************************/
package me.send.data.service.mapper;

import me.send.data.service.pojo.Message;

import org.apache.ibatis.annotations.Insert;

/**
 * @author maxmin
 *
 * @date 2015年9月23日 下午4:21:29
 */
public interface MessageMapper {
	/**
	 * 添加消息记录
	 * 
	 * @param message
	 * @return
	 */
	@Insert(value = "INSERT INTO message (message,user_id,user_type,type,orderid,from_user_id,createtime,updatetime) "
			+ "values (#{message},#{userId},#{userType},#{type},#{orderId},#{fromUserId},#{createtime},#{updatetime})")
	public int addMessage(Message message);
}
